package com.qsboss.demo.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qsboss.demo.mapper.TbSysLogMapper;
import com.qsboss.demo.pojo.TbSysLog;
import com.qsboss.demo.service.TbSysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2023/10/29 16:51
 */

@Service
public class TbSysLogServiceImpl implements TbSysLogService {

    @Autowired
    TbSysLogMapper tbSysLogMapper;

    @Override
    public PageInfo getLogByPage(Integer pageNum, Integer pageSize) {

        PageHelper.startPage(pageNum, pageSize);

        Page<TbSysLog> logByPage = tbSysLogMapper.getLogByPage();

        return new PageInfo(logByPage);
    }
}
